package com.suning.sawp.dto.common;

import java.io.Serializable;
import java.security.Principal;
import java.util.List;

import com.suning.sawp.dto.storeman.Category;

public class EmployeeInfo implements Principal, Serializable {

    /**
     */
    private static final long serialVersionUID = 8777698935327006535L;

    /**
     * 工号
     */
    private String staffId;
    
    /**
     * 员工姓名
     */
    private String staffName;
    
    /**
     * 生成菜单的时间
     */
    private String timestamp;
    
    /**
     * 门店编码
     */
    private String storeCode;
    
    /**
     * 门店名称
     */
    private String storeName;
    
    /**
     * 大区编码
     */
    private String regionCode;
    
    /**
     * 大区5位编码
     */
    private String region5Code;
    
    /**
     * 大区名称
     */
    private String regionName;
    /**
     * 岗位编码
     */
    private String positionId;
    /**
     * 组织级别  0 总部   1分公司   4 门店
     */
    private String orgLevel;
    /**
     * 分公司编码(4位)
     */
    private String branchCode;
    /**
     * 分公司名称
     */
    private String branchName;
    
    /**
     * 品类数据
     */
    private List<Category> categoryes;
    
    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    @Override
    public String getName() {
        return getStaffId();
    }
    
    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getRegion5Code() {
        return region5Code;
    }

    public void setRegion5Code(String region5Code) {
        this.region5Code = region5Code;
    }

    public List<Category> getCategoryes() {
        return categoryes;
    }

    public void setCategoryes(List<Category> categoryes) {
        this.categoryes = categoryes;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("EmployeeInfo {staffId=").append(staffId).append(", staffName=")
            .append(staffName).append(", timestamp=").append(timestamp).append(", storeCode=")
            .append(storeCode).append(", storeName=").append(storeName).append(", regionCode=")
            .append(regionCode).append(", region5Code=").append(region5Code).append(", regionName=")
            .append(regionName).append(",positionId=").append(positionId).append(",orgLevel=")
            .append(orgLevel).append(",branchCode=").append(branchCode).append(",branchName=").append(branchName).append("}");
        return builder.toString();
    }
}
